package study01;

public class Java07_Extend {
    public static void main(String[] args) {
        Child c = new Child();
        c.name = "ls";
        c.play();
        c.test();
    }
}

class Parent {
    String name = "zs";
    void play () {
        System.out.println(name + "paly...");
    }
}

class Child extends Parent {
    String name = "ls";
    void test () {
        System.out.println(this.name);
        System.out.println(super.name);
    }
}
